﻿using FluentValidation;
using Turquoise.Entities.Complex.UserModels;
using Turquoise.Globalization;

namespace Turquoise.Validation.FluentValidation.UserValidation.Rules
{
    public class LoginRules : AbstractValidator<LoginModel>
    {
        public LoginRules()
        {
            RuleFor(p => p.Username).NotEmpty().WithMessage(Resources.UsernameNotEmpty);
            RuleFor(p => p.Password).NotEmpty().WithMessage(Resources.PasswordNotEmpty);
        }
    }
}
